<?php

use Illuminate\Database\Seeder;

class SysPermissionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $sql = <<<EOD
INSERT INTO `sys_permissions` VALUES (1, 0, 'admin.index.index', '管理后台', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (2, 1, 'admin.index.index', '仪表盘', '', 3, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (3, 2, 'admin.index.sysinfo', '系统信息', '', 3, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (5, 2, 'admin.index.index', '后台首页', '', 1, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (6, 1, 'admin.sysmenugroup.index', '菜单分组管理', '', 4, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (7, 6, 'admin.sysmenugroup.index', '菜单分组列表', '', 0, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (8, 2, 'admin.index.dashboard', '控制面板', '', 2, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (9, 6, 'admin.sysmenugroup.create', '添加', '', 0, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (11, 6, 'admin.sysmenugroup.update', '编辑', '', 0, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (12, 6, 'admin.sysmenugroup.destroy', '删除', '', 0, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (13, 1, 'admin.syspermission.index', '权限管理', '', 6, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (14, 13, 'admin.syspermission.index', '权限列表', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (15, 13, 'admin.syspermission.getjstreedata', '加载tree结构json', '', 5, 1, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (16, 13, 'admin.syspermission.gettreeoption', '加载tree select选项', '', 6, 1, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (17, 13, 'admin.syspermission.get', '权限数据读取', '', 4, 1, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (18, 13, 'admin.syspermission.save', '添加/编辑', '', 1, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (19, 13, 'admin.syspermission.savesort', '排序', '', 3, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (20, 13, 'admin.syspermission.destroy', '删除', '', 2, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (21, 1, 'admin.sysmenu.index', '菜单管理', '', 5, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (22, 21, 'admin.sysmenu.index', '菜单列表', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (24, 21, 'admin.sysmenu.create', '添加', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (27, 21, 'admin.sysmenu.update', '编辑', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (28, 21, 'admin.sysmenu.destroy', '删除', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (30, 1, 'admin.sysrole.index', '系统角色管理', '', 7, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (31, 30, 'admin.sysrole.index', '角色列表', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (34, 30, 'admin.sysrole.create', '添加', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (35, 30, 'admin.sysrole.update', '编辑', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (37, 30, 'admin.sysrole.saveperm', '权限编辑', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (38, 30, 'admin.sysrole.destroy', '删除', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (39, 1, 'admin.sysuser.index', '系统用户管理', '', 8, 0, 0, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (40, 39, 'admin.sysuser.index', '用户列表', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (41, 39, 'admin.sysuser.create', '创建用户', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (43, 39, 'admin.sysuser.update', '编辑用户', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (45, 39, 'admin.sysuser.editrole', '用户角色编辑', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (47, 39, 'admin.sysuser.changestatus', '用户激活/禁用', '', 0, 0, 1, NULL, '2018-04-13 02:35:33', '2018-04-13 02:35:33');
INSERT INTO `sys_permissions` VALUES (48, 1, 'admin.sysfile.index', '文件管理', '', 7, 0, 0, NULL, '2018-04-30 03:48:59', '2018-05-10 14:04:40');
INSERT INTO `sys_permissions` VALUES (49, 48, 'admin.sysfile.index', '文件列表', '', 0, 0, 1, NULL, '2018-04-30 03:49:10', '2018-04-30 03:49:10');
INSERT INTO `sys_permissions` VALUES (50, 48, 'admin.sysfile.ueditorupload', '百度文件上传', '', 0, 1, 1, NULL, '2018-04-30 03:49:26', '2018-04-30 03:49:26');
INSERT INTO `sys_permissions` VALUES (51, 48, 'admin.sysfile.webupload', 'webUploader文件上传', '', 0, 1, 1, NULL, '2018-04-30 03:49:40', '2018-04-30 03:49:40');
EOD;
        DB::unprepared($sql);
    }
}
